<%@ include file="database_ini.jsp"%>


<%
	//response.sendRedirect("index.jsp");
	
	String Serailkey[] = request.getParameterValues("Serailkey");
	
	
	String type = request.getParameter("type");
	
	
	String stsql ="";
	Statement st;
	if (Serailkey != null) {
		/*********debug*/
		System.out.println("Serailkey: " + Serailkey[0]);
		/**********/
		
		stsql = " delete from CCParameter where Serailkey = " + Integer.parseInt(Serailkey[0]) ;
		/*********debug*/
		System.out.println("stsql: " + stsql);
		/**********/
		
		st = conn.createStatement();
		st.executeUpdate(stsql);

	}
	conn.close();
	
	
	String status = "ok";
	String action = "del";
	
	
	response.sendRedirect("index.jsp?status=" + status + "&action=" + action);
%>